/**
 * Date: 8/24/20
 */
import request from "../utils/request";

const _prefix = '/alyx';

export function getWebRtcRemoteSdp(streamPath, data) {
  return request({
    method: "POST",
    url: '/webrtc/play',
    params: {streamPath},
    data: data
  })
}

export function getStreamPath() {
  return request({
    method: "GET",
    url: _prefix + '/queryList'
  })
}

//
export function getRecordStreamDirList() {
  return request({
    method: "GET",
    url: _prefix + '/queryDirList'
  })
}

export function getRecordList(data) {
  return request({
    method: "GET",
    url: _prefix + '/queryDirFromDate',
    params: data
  })
}


export function getRecordListByTimeRange(data) {
  return request({
    method: "GET",
    url: _prefix + '/queryFilesFromTime',
    params: data
  })
}



